package iss.anxios.dao;


import iss.anxios.dto.RespondentAttributeAssociationNew;
import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository("newtest")
public class RespondentTest {

	@PersistenceContext
	EntityManager em;

	@Transactional
	@SuppressWarnings("unchecked")
	public List<RespondentAttributeAssociationNew> ListTest() {
		System.out.println("I am in the respondent attribute.......");
	
    	
    	List<RespondentAttributeAssociationNew> list = em.createQuery("Select r from RespondentAttributeAssociationNew r").getResultList();
    	int s = list.size();
    	System.out.println(s + "iiiiiiiiiiiiiiiiiiiiiii");
    	//System.out.println(list.get(0).getRespondentAttributeAssociationId());
    	return list;
	}
}
